package com.xmhmyh.generalframework.project.sys.service;

import com.xmhmyh.generalframework.common.BaseIService;
import com.xmhmyh.generalframework.project.sys.dto.CascaderDTO;
import com.xmhmyh.generalframework.project.sys.entity.Location;
import com.xmhmyh.generalframework.project.sys.enums.LocationLvl;

import java.util.Collection;
import java.util.List;

/**
 * @Author: 于丁
 * @Description: 位置服务类
 * @DateTime: 2020/8/14 10:45 上午
 * @Params: * @param: null
 * @Return {@link null}
 */
public interface ILocationService extends BaseIService<Location> {

    Collection<Location> queryByParentCode(String parentCode);

    Location getByCode(String code);

    Location getByName(String name, LocationLvl locationLvl);

    Location getByName(String parentsCode, String name, LocationLvl locationLvl);

    List<CascaderDTO> querySelectHandler(List<String> selectId);
}
